<template>
  <div>详情页</div>
</template>

<script setup>
// this.$route.params.id

import { onMounted } from "vue";
import { useRoute } from "vue-router";

const route = useRoute();
onMounted(() => {
  console.log(route.params.id);
});
</script>
